﻿using SqlExecHelper;
using Wedonek.RpcStore.Service.Model;

namespace Wedonek.RpcStore.Service.DAL
{
        internal class ServerSignalStateDAL : SqlBasicClass
        {
                public ServerSignalStateDAL () : base ("ServerSignalState")
                {

                }

                public ServerSignalState[] Gets (long serverId)
                {
                        return base.Get<long, ServerSignalState> ("ServerId", serverId);
                }
                public void Clear (long serverId)
                {
                        base.Drop ("ServerId", serverId);
                }
                public void ClearRemote (long serverId)
                {
                        base.Drop ("RemoteId", serverId);
                }

        }
}
